// Overrides
@import url(https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,300,700);

.button,
.control.has-icons-left .icon,
.control.has-icons-right .icon,
.input,
.pagination-ellipsis,
.pagination-link,
.pagination-next,
.pagination-previous,
.select,
.select select,
.textarea {
  height: 2.534em;
}

.button {
  &.is-active,
  &:active {
    box-shadow: inset 1px 1px 4px rgba($grey-darker, 0.3);
  }
  @each $name, $pair in $colors {
    $color: nth($pair, 1);
    $color-invert: nth($pair, 2);

    &.is-#{$name} {
      border-color: darken($color, 5);

      &.is-hovered,
      &:hover {
        background-color: darken($color, 10);
      }

      &.is-active,
      &:active {
        box-shadow: inset 1px 0 3px rgba($grey-darker, 0.3);
        background-color: darken($color, 10);
      }
    }
  }

  &.is-loading:after {
    border-color: transparent transparent $grey-light $grey-light;
  }
}

.input,
.textarea {
  box-shadow: none;
}

.box,
.card {
  box-shadow: 0 0 0 1px $border;
}

.notification {
  @each $name, $pair in $colors {
    $color: nth($pair, 1);
    $color-invert: nth($pair, 2);

    &.is-#{$name} {
      a:not(.button) {
        color: $color-invert;
        text-decoration: underline;
      }
    }
  }
}

.navbar {
  .has-dropdown .navbar-item {
    @include desktop {
      color: $text;
    }
  }

  .navbar-burger {
    span {
      background-color: $white;
    }

    &:hover {
      background-color: $link-hover;
    }
  }
}

.nav {
  background-color: $primary;
  border-radius: $radius;
  color: rgba($white, 0.6);
  @media screen and (max-width: $tablet - 1) {
    .nav-menu {
      background-color: $primary;
    }
  }

  .subtitle,
  .title {
    color: $white;
  }

  .nav-item a:not(.button),
  a.nav-item:not(.button) {
    color: rgba($white, 0.6);

    &:hover {
      color: $white;
    }
    // Modifiers
    &.is-active {
      color: $white;

      &.is-tab {
        border-bottom-color: $white;
      }
    }
  }

  .nav-toggle {
    &:hover {
      background-color: rgba($white, 0.1);

      span {
        background-color: $white;
      }
    }

    span {
      background-color: rgba($white, 0.6);
    }
  }
}

.hero .nav,
body > .nav {
  border-radius: 0;
}

.hero {
  // Colors
  .nav {
    background-color: $primary;
  }
  @each $name, $pair in $colors {
    $color: nth($pair, 1);
    $color-invert: nth($pair, 2);

    &.is-#{$name} {
      .nav {
        background: none;
      }

      .nav-item a:not(.button),
      a.nav-item {
        color: rgba($color-invert, 0.6);

        &.is-active,
        &:hover {
          color: $color-invert;
        }
      }
    }
  }
}

.progress,
.tag {
  border-radius: $radius;
}
